//
//  XHQHttpTool.h
//  XiongMaoJiaSu
//
//  Created by 徐汉卿 on 16/5/30.
//  Copyright © 2016年 ISOYasser. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface XHQHttpTool : NSObject

+(NSString *)xhqpostWL:(NSString *)url params:(NSDictionary *)params success:(void (^)(NSString *urlStr,NSDictionary *json))success failure:(void (^)(NSString *urlStr,NSError *error))failure timeOut:(NSInteger)timeOut showMB:(BOOL)showMB toView:(UIView *)view;



+(NSString *)xhqpost:(NSString *)url params:(NSDictionary *)params success:(void (^)(NSString *urlStr,NSDictionary *json))success failure:(void (^)(NSString *urlStr,NSError *error))failure timeOut:(NSInteger)timeOut showMB:(BOOL)showMB toView:(UIView *)view;


+(NSString *)xhqReTryPost:(NSString *)url params:(NSDictionary *)params success:(void (^)(NSString *urlStr,id json))success failure:(void (^)(NSString *urlStr,NSError *error))failure timeOut:(NSInteger)timeOut showMB:(BOOL)showMB toView:(UIView *)view;







+(NSString *)xhqReTryGET:(NSString *)url params:(NSDictionary *)params success:(void (^)(NSString *urlStr,id json))success failure:(void (^)(NSString *urlStr,NSError *error))failure timeOut:(NSInteger)timeOut showMB:(BOOL)showMB toView:(UIView *)view;

+(NSString *)xhq_GET:(NSString *)url params:(NSDictionary *)params success:(void (^)(NSString *urlStr,NSDictionary *json))success failure:(void (^)(NSString *urlStr,NSError *error))failure timeOut:(NSInteger)timeOut showMB:(BOOL)showMB toView:(UIView *)view;
@end
